Fix a warning
authorYosef Or Boczko <yoseforb@gmail.com>
Wed, 9 Oct 2013 00:15:14 +0000 (03:15 +0300)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 16 Oct 2013 00:11:30 +0000 (20:11 -0400)
The PangoWrapMode enum has identical layout to GtkWrapMode,
but using the two interchangably causes (justified) compiler
warnings.

https://bugzilla.gnome.org/show_bug.cgi?id=709697

gtk/gtktextutil.c

index 93c755acee022bb22745837c8ef6805b71c1d342..32b41ae37b4b9ea495421e2ee350b988856ae32a 100644 (file)
@@ -342,7 +342,7 @@ _gtk_text_util_create_rich_drag_icon (GtkWidget     *widget,
      }
 
    style->direction = gtk_widget_get_direction (widget);
-   style->wrap_mode = PANGO_WRAP_WORD_CHAR;
+   style->wrap_mode = GTK_WRAP_WORD_CHAR;
 
    gtk_text_layout_set_default_style (layout, style);
    gtk_text_attributes_unref (style);